import request from '@/utils/request'

// 查询试卷大题列表
export function listPaperTitle(query) {
  return request({
    url: '/exam/paperTitle/list',
    method: 'get',
    params: query
  })
}

// 查询试卷大题详细
export function getPaperTitle(id) {
  return request({
    url: '/exam/paperTitle/' + id,
    method: 'get'
  })
}

// 新增试卷大题
export function addPaperTitle(data) {
  return request({
    url: '/exam/paperTitle',
    method: 'post',
    data: data
  })
}

// 修改试卷大题
export function updatePaperTitle(data) {
  return request({
    url: '/exam/paperTitle',
    method: 'put',
    data: data
  })
}

// 删除试卷大题
export function delPaperTitle(id) {
  return request({
    url: '/exam/paperTitle/' + id,
    method: 'delete'
  })
}
